<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" style="height: 100%">
<body class="body_hei edit">
<div th:replace="include/head.html::html"></div>
<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin"
     style="padding: 20px 0 0 0;background-color: #FFFFFF;height: 100%">
    <input type="hidden" name="oid" th:field="${bean.oid}"/>
    <div class="layui-form-item">
        <label class="layui-form-label">标题:</label>
        <div class="layui-input-inline" style="width: 70%;">
            <input type="text" name="title" lay-verify="required" placeholder="请输入标题" autocomplete="off"
                   class="layui-input" th:field="${bean.title}">
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <label class="layui-form-label">类型</label>
        <div class="layui-input-block">
            <select name="type" lay-verify="required">
                <option value=""></option>
                <option value="1" th:selected="${type == 1}">帮助中心</option>
                <option value="2" th:selected="${type == 2}">关于我们</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">内容</label>
        <div class="layui-input-inline" style="width: 80%">
            <textarea id="demo" style="display: none;" th:text="${bean.content}"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="submit" id="submit" value="确认">
    </div>
</div>
<script>
    layui.use(['jquery','form', 'layedit'], function () {
        var $ = layui.$;
        var layedit = layui.layedit;
        var id = layedit_initialize(layedit,'demo')
    });
</script>
</body>
</html>